using System;
using System.Xml.Serialization;

namespace WHC.Hotel.Entity
{
    [Serializable]
    public class PurchaseDetailInfo : BaseEntity
    {    
        #region Field Members

        private int m_ID = 0;         
        private int m_PurchaseHead_ID = 0; //进货表单头          
        private string m_OperationType = ""; //操作类型(进货还是退货)          
        private string m_ItemNo = ""; //项目编码          
        private string m_ItemName = ""; //项目名称          
        private string m_Unit = ""; //单位          
        private decimal m_Price = 0; //单价          
        private double m_Quantity = 0; //数量          
        private decimal m_Amount = 0; //金额          
        private double m_DuralDays = 0; //保质天数          
        private DateTime m_ExpireDate = System.DateTime.Now; //过期日期          

        #endregion

        #region Property Members
        
        public virtual int ID
        {
            get
            {
                return this.m_ID;
            }
            set
            {
                this.m_ID = value;
            }
        }

        /// <summary>
        /// 进货表单头
        /// </summary>
        public virtual int PurchaseHead_ID
        {
            get
            {
                return this.m_PurchaseHead_ID;
            }
            set
            {
                this.m_PurchaseHead_ID = value;
            }
        }

        /// <summary>
        /// 操作类型(进货还是退货)
        /// </summary>
        public virtual string OperationType
        {
            get
            {
                return this.m_OperationType;
            }
            set
            {
                this.m_OperationType = value;
            }
        }

        /// <summary>
        /// 项目编码
        /// </summary>
        public virtual string ItemNo
        {
            get
            {
                return this.m_ItemNo;
            }
            set
            {
                this.m_ItemNo = value;
            }
        }

        /// <summary>
        /// 项目名称
        /// </summary>
        public virtual string ItemName
        {
            get
            {
                return this.m_ItemName;
            }
            set
            {
                this.m_ItemName = value;
            }
        }

        /// <summary>
        /// 单位
        /// </summary>
        public virtual string Unit
        {
            get
            {
                return this.m_Unit;
            }
            set
            {
                this.m_Unit = value;
            }
        }

        /// <summary>
        /// 单价
        /// </summary>
        public virtual decimal Price
        {
            get
            {
                return this.m_Price;
            }
            set
            {
                this.m_Price = value;
            }
        }

        /// <summary>
        /// 数量
        /// </summary>
        public virtual double Quantity
        {
            get
            {
                return this.m_Quantity;
            }
            set
            {
                this.m_Quantity = value;
            }
        }

        /// <summary>
        /// 金额
        /// </summary>
        public virtual decimal Amount
        {
            get
            {
                return this.m_Amount;
            }
            set
            {
                this.m_Amount = value;
            }
        }

        /// <summary>
        /// 保质天数
        /// </summary>
        public virtual double DuralDays
        {
            get
            {
                return this.m_DuralDays;
            }
            set
            {
                this.m_DuralDays = value;
            }
        }

        /// <summary>
        /// 过期日期
        /// </summary>
        public virtual DateTime ExpireDate
        {
            get
            {
                return this.m_ExpireDate;
            }
            set
            {
                this.m_ExpireDate = value;
            }
        }


        #endregion

    }
}